package com.ysz.redisson.lock;

import io.netty.util.Timeout;

/**
 * @ClassName ExpirationEntry
 * @Description TODO
 * @Data 15:30
 * @Version 1.0
 * @Author ysz
 */
public class ExpirationEntry {
    private long threadId;
    private Timeout timeout;

    public ExpirationEntry(long threadId, Timeout timeout) {
        this.threadId = threadId;
        this.timeout = timeout;
    }

    public void setThreadId(long threadId) {
        this.threadId = threadId;
    }

    public void setTimeout(Timeout timeout) {
        this.timeout = timeout;
    }

    public long getThreadId() {
        return threadId;
    }

    public Timeout getTimeout() {
        return timeout;
    }
}
